package router

import (
	"github.com/gin-gonic/gin"
	"zg3/internal/api"
	"zg3/internal/middleware"
)

func VideoRouter(c *gin.RouterGroup) {
	videoRouter := c.Group("video").Use(middleware.Middleware())
	{
		videoRouter.POST("list", api.ListVideo)
		videoRouter.POST("begin", api.BeginVideo)
		videoRouter.POST("like", api.VideoLike)
		videoRouter.POST("find", api.FindLikeVideo)
		videoRouter.POST("noLike", api.NoLike)
		videoRouter.POST("top", api.TopEveryDay)
	}
}
